#唐门优测
#道长最帅666

#用此字典来实现
# a = {"a":1,"b":2}
# b = {"a":1,"b":2,"c":3}
#
# "可知a是b的子集，想要的结果就是a存在与b中时，给我true，不存在给我false"
#
# for i,j in a.items():
#     # print(i,j)
#     if i in b.keys():
#         print(i)
#         if j == b[i]:
#             print("a的值存在于b中",{i,j})
from common.logger import Logger

def assert_api(actual_data,expect_data):
    Logger.info("\r\nassert:\r\n 实际结果：{}，\r\n期望结果{}".format(actual_data,expect_data))

    try:
        a = expect_data
        b = actual_data
        for i,j in a.items():
            if i in b.keys():
                assert j == b[i]

    except AssertionError as e:
        raise e
